package com.ptkc.data.repository;

import com.ptkc.constants.Page;
import org.apache.http.Header;
import org.elasticsearch.action.search.SearchRequest;
import org.springframework.data.domain.Pageable;

import java.io.IOException;

/**
 * @author: Mr.Jiao
 * @date: 2018年11月17日
 */

public interface ElasticsearchRepository<T> {

    Page<T> search(SearchRequest request, Pageable pageable, Header...headers) throws IOException;

}
